var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
delete arr[2];
console.log(arr);
arr.join("").replace("empty", "").split("");
console.log(arr.join("").replace("empty", ""));
